Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR #8216/a5b2b5ce backport][stable-8] Add support for docker-v2 protocol in Keycloak modules #8239

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Apr 20, 2024

This is a backport of PR #8216 as merged into main (a5b2b5c).

SUMMARY

This pull request introduces the addition of the "docker-v2" protocol support to the keycloak_client, keycloak_clientscope, and keycloak_clienttemplate modules within the community.general collection. The "docker-v2" protocol is a valid and supported option in Keycloak, which is crucial for configurations involving Docker registry authentication, among others. Fixes #8215.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
  • keycloak_client
  • keycloak_clientscope
  • keycloak_clienttemplate
ADDITIONAL INFORMATION

I have enhanced the protocol parameter across the keycloak_client, keycloak_clientscope, and keycloak_clienttemplate modules to include the "docker-v2" option. It's important to note that the existing protocol choices varied across different modules — some were limited to ['openid-connect', 'saml'], while others used Python constants to define the choices. I've respected the existing structure and conventions in each module, only extending them to include "docker-v2".

For instance, if a module's protocol choices were previously defined as:

protocol=dict(type='str', choices=['openid-connect', 'saml'])

I have updated this to

protocol=dict(type='str', choices=['openid-connect', 'saml', 'docker-v2'])

And similarly, for modules using Python constants to define protocol choices, I've appended "docker-v2" to the existing list without altering the existing structure.

The documentation for each affected module has been updated to include "docker-v2" as a valid protocol option.

The modifications were tested to confirm that the "docker-v2" protocol is recognized and behaves as expected across the updated modules. I encourage further testing by the community to validate these changes across various usage scenarios.

I have not verified the potential error message from the Keycloak API when this option is used when the keycloak server has not activated the docker-v2 protocol, (disabled by default and enabled by running bin/standalone.sh|bat -Dkeycloak.profile.feature.docker=enabled starting the service, see (https://www.keycloak.org/server/features).

* Add support for docker-v2 protocol in Keycloak modules

* use dash instead of underscore for the docker-v2

* Update documentation

* Add changelog fragment

* fix missing whitespace around operator

* Update changelogs/fragments/8215-add-docker-v2-protocol.yml

Update changelog fragment to reviewers suggestion, add refrence to issue and pull request

Co-authored-by: Felix Fontein <[email protected]>

* Add documentation about adding docker-v2 value in community general 8.6.0

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit a5b2b5c)
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added backport feature This issue/PR relates to a feature request module module new_contributor Help guide this first time contributor plugins plugin (any type) labels Apr 20, 2024
@felixfontein felixfontein merged commit 3e67b6c into stable-8 Apr 20, 2024
131 of 132 checks passed
@felixfontein felixfontein deleted the patchback/backports/stable-8/a5b2b5ce8ca879a49df69a5fd997f74dd5139c47/pr-8216 branch April 20, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue/PR relates to a feature request module module new_contributor Help guide this first time contributor plugins plugin (any type)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants